# myadmin中创建urls.py, 然后定义如下路由
from django.urls import path
from django.conf.urls import url

from myadmin import views, teachPlan, dataDetail
app_name = 'myadmin'

urlpatterns = [
    url(r"^regist/$", views.registerAction, name="registerAction"),                         # 督导账号注册
    url(r"^user/list/$", views.user_list, name="user_list"),                                 # 督导用户列表
    url(r"^delete/user/$", views.delete_user, name="delete_user"),                           # 删除督导用户
    url(r"^management/login/$", views.management_ogin, name="management_ogin"),              # 管理后台登录
    url(r"^login/$", views.applet_login, name="applet_login"),                              # 小程序登录
    url(r"^out_login/$", views.out_login, name="out_login"),                                # 退出登录

    url(r"^search/down/video/excel/$", views.down_video_excel, name="down_video_excel"),    # 下载视频对比excel
    url(r"^search/up/oss/file/$", views.up_oss_file, name="up_oss_file"),                   # 视频/图片上传oss
]

urlpatterns += [
    url(r"^teachPlan/export/teach/plan/$", teachPlan.sumbit_teach_plan, name="sumbit_teach_plan"),                     # 文件上传
    url(r"^teachPlan/access/semester/list/$", teachPlan.semester_list, name="semester_list"),                          # 获取所有学期名称
    url(r"^teachPlan/access/department/list/$", teachPlan.department_list, name="department_list"),                    # 学期>部门
    url(r"^teachPlan/access/teacher/list/$", teachPlan.teacher_list, name="teacher_list"),                             # 学期>部门>教师
    url(r"^teachPlan/access/course/list/$", teachPlan.course_list, name="course_list"),                                # 学期>部门>教师>课程

    # 如果理论，实验
    url(r"^teachPlan/access/class/no/list/$", teachPlan.class_no_list, name="class_no_list"),                          # 获取部门>教师>课程>学期>上课班号
    url(r"^teachPlan/access/section/list/$", teachPlan.section_list, name="section_list"),                             # 获取部门>教师>课程>学期>上课班号>节次
    url(r"^teachPlan/access/site/list/$", teachPlan.site_list, name="site_list"),                                      # 获取部门>教师>课程>学期>上课班号>节次>地点
    #实践
    url(r"^teachPlan/access/week/time/list/$", teachPlan.week_time_list, name="week_time_list"),                       # 获取部门>教师>课程>学期>周次
    #
    url(r"^teachPlan/access/subject/list/$", teachPlan.subject_list, name="subject_list"),                             # 获取理论实验 题库
    url(r"^teachPlan/access/practice/subject/list/$", teachPlan.practice_subject_list, name="practice_subject_list"),  # 获取实践结果
    url(r"^teachPlan/submit/mark/result/$", teachPlan.submit_mark_result, name="mark_result"),                         # 提交打分结果
    url(r"^teachPlan/creat/data/$", teachPlan.creat_data, name="creat_data"),                                          # 创建/更新源数据
    url(r"^teachPlan/arrangement/list/$", teachPlan.arrangement_list, name="arrangement_list"),                        # 获取原数据列表
    url(r"^teachPlan/delete/arrangement/$", teachPlan.delete_arrangement, name="delete_arrangement"),                  # 删除原数据
]
# 督导数据详情
urlpatterns += [
    url(r"^dataDetail/get/mark/result/$", dataDetail.get_mark_result, name="get_mark_result"),                         # 管理员获取所有督导数据/搜索单个老师
    url(r"^dataDetail/export/excel/result/$", dataDetail.export_excel_result, name="export_excel_result"),             # 管理员获取所有督导数据/搜索单个老师
    url(r"^dataDetail/course/average/score/$", dataDetail.course_average_score, name="course_average_score"),          # 获取老师课程的平均分
    url(r"^dataDetail/supervisor/mark/result/$", dataDetail.supervisor_mark_result, name="supervisor_mark_result"),    # 督导老师获取所有督导数据/搜索单个老师
    url(r"^dataDetail/delete/mark/result/$", dataDetail.delete_mark_result, name="delete_mark_result"),                # s删除督导老师打分结果

    url(r"^dataDetail/teacher/mark/$", dataDetail.teacher_mark, name="teacher_mark"),                                   # 获取教师成绩
    url(r"^dataDetail/supervision/class/num/$", dataDetail.supervision_class_num, name="supervision_class_num"),         # 督导老师听课次数
    url(r"^dataDetail/change/score/$", dataDetail.change_score, name="change_score"),                                   # 修改分数
    url(r"^dataDetail/supervisors/number/$", dataDetail.supervisors_number, name="supervisors_number"),                 # 督导教师数量

    url(r"^dataDetail/subject/list/$", dataDetail.subject_list, name="subject_list"),                                   # 题库列表
    url(r"^dataDetail/change/subject/$", dataDetail.change_subject, name="change_subject"),                             # 修改试题信息
]


